package com.dq.controller.in.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author liuhui
 * @date 2019/9/22 0022 20:31:45
 */
@Data
@ApiModel("商户-我的订单查询")
public class DeptOrdersQuery {

    @ApiModelProperty("订单状态 all:全部 wait：待核销 already：已核销")
    private OrderStatus status;
    @ApiModelProperty("页数")
    private Integer page;
    @ApiModelProperty("每页长度")
    private Integer size;

    public enum OrderStatus {
        all("全部"),
        wait("待核销"),
        already("已核销"),

        ;
        private String name;

        OrderStatus(String name) {
            this.name = name;
        }
    }
}
